<?php
// +----------------------------------------------------------------------
// | OneKeyAdmin [ Believe that you can do better ]
// +----------------------------------------------------------------------
// | Copyright (c) 2020-2023 http://onekeyadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: MUKE <513038996@qq.com>
// +----------------------------------------------------------------------
namespace plugins\cms\admin\validate;

use think\Validate;

class Team extends Validate
{
    protected $rule =   [
        'catalog_id'    => 'require',
        'title'         => 'require',
    ];
    protected $message  =   [
        'catalog_id.require' => '请选择分类',
        'title.require'      => '请输入名称',
    ];
    protected $scene = [
        'save'          => ['catalog_id','title'],
        'update'        => ['catalog_id','title'],
    ];
}